package cn.singno.bob.solr.test.service;

import org.springframework.data.domain.Page;
import org.springframework.data.solr.core.query.result.FacetPage;
import org.springframework.data.solr.core.query.result.HighlightPage;

import cn.singno.bob.solr.test.entity.User;

public interface UserService {

	
	public User findBy(String name);
	
	public User save(User user);
	
	public User update(User user);
	
	public void delete(String id);
	
	public User findBy1(String id);
	
	public Page<User> find2(String name);
	
	public Page<User> findSort(String name);

	public Page<User>  findBoost(String name);
	
	public FacetPage<User> findFacet(String name);
	
	public HighlightPage<User> findByHighlight(String name);
}
